package com.xxxx.mapper;

import com.xxxx.entity.User;

import com.xxxx.entity.Blog;
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
=======
import org.apache.ibatis.annotations.Param;

>>>>>>> 2c9a92f (新增删除博客功能)
=======
import org.apache.ibatis.annotations.Param;

>>>>>>> a05f6f6 (密码密文存储)
=======
import org.apache.ibatis.annotations.Param;

>>>>>>> 2acfcf7 (详情页)
=======
import org.apache.ibatis.annotations.Param;

>>>>>>> d93a5bb (移除index页)
import java.util.List;

public interface BlogMapper {

    int insertBlog(Blog blog);

    List<Blog> selectBlogsByUserId(Integer userId);

    List<Blog> selectAllBlogs();
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD

    int deleteBlog(Integer blogId);
=======
=======
>>>>>>> a05f6f6 (密码密文存储)
=======
>>>>>>> 2acfcf7 (详情页)
=======
>>>>>>> d93a5bb (移除index页)
    Blog getBlogById(int blogId);
    int deleteBlogById(int blogId);

    int deleteBlog(
            @Param("blogId") int blogId,
            @Param("userId") int userId
    );
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
>>>>>>> 2c9a92f (新增删除博客功能)
=======
>>>>>>> a05f6f6 (密码密文存储)
=======
>>>>>>> 2acfcf7 (详情页)
=======
>>>>>>> d93a5bb (移除index页)
}